package com.gugee.tiktok.web.repository;

import com.gugee.tiktok.web.model.mysql.MusicCollection;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface MusicCollectionRepository extends CrudRepository<MusicCollection,Long>, MusicCollectionExtRepository {

    Optional<MusicCollection> findByMidAndUserId(long mid,long userId);

    int countByUserId(long userId);
}
